<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>首页-{$tpshop_config['shop_info_store_title']}</title>
    <link rel="stylesheet" href="__STATIC__/css/style.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/iconfont.css"/>
    <script src="__STATIC__/js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
    <!--<script src="__STATIC__/js/zepto-1.2.0-min.js" type="text/javascript" charset="utf-8"></script>-->
    <script src="__STATIC__/js/mobile-util.js" type="text/javascript" charset="utf-8"></script>
    <script src="__STATIC__/js/swipeSlide.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="__PUBLIC__/js/global.js"></script>
    <script src="__STATIC__/js/layer.js"  type="text/javascript" ></script>
    <link rel="shortcut icon" type="image/x-icon" href="{$tpshop_config.shop_info_store_ico|default='/public/static/images/logo/storeico_default.png'}" media="screen"/>
    <style type="text/css">
        .advertisement .le .td p{
            width: 6.82667rem;
            text-align: left;
            font-size: .55rem;
            margin: 10px auto;
            line-height: 1rem;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
        }
        .red{
            color: #d01e2f;
        }
        .adimg{
           width: 90%;
           margin: .5rem auto; 
        }
        .adimg a,.adimg a img{
            display: block;
            width: 100%;
        }
    </style>
</head>
<body>
    <!--顶部搜索栏-s-->
    <header style="display: none;">
        <div class="content">
            <div class="ds-in-bl search">
                <div class="sea-box">
                    <div class="logo">
                        <a href=""><img src="{$tpshop_config.shop_info_wap_home_logo|default='/public/static/images/logo/wap_home_logo_default.png'}" alt="LOGO"></a>
                    </div>
                    <span ></span>
                    <form action=""  method="post">
                        <div class="sear-input">
                            <a href="{:U('Goods/ajaxSearch')}">
                                <input type="text" name="q" id="search_text" class="search_text"   value="" placeholder="请输入您所搜索的商品">
                            </a>
                        </div>
                    </form>
                </div>
            </div>
            <div class="ds-in-bl login">
                <span>
                <if condition="$user_id gt 0">
                    <a href="{:U('Mobile/User/index')}"> <img class="after_login" src="__STATIC__/images/my.png"></a>
                <else/>
                    <a href="{:U('Mobile/User/login')}"> 登录</a>
                </if>
            </span>
            </div>
        </div>
    </header>
    <!--顶部搜索栏-e-->

    <!--顶部滚动广告栏-s-->
    <div class="banner ban1">
        <div class="mslide" id="slideTpshop">
            <ul>
                <!--广告表-->
                <adv pid ="51321" limit="5" item="v">
                    <li><a href="#">
                        <img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}" alt="">
                    </a></li>
                </adv>
            </ul>
        </div>
    </div>
    <!--顶部滚动广告栏-e-->

    <!--菜单-start-->
    <div class="floor dh">
        <!-- <nav>
            <a href="{:U('Goods/categoryList')}">
                <span>
                    <img src="__STATIC__/images/icon_03.png" alt="全部类别" /><br />
                    <span>全部类别</span>
                </span>
            </a>
            <a href="{:U('Index/index3')}">
                <span>
                    <img src="__STATIC__/images/icon_05.png" alt="维修保养" /><br />
                    <span>维修保养</span>
                </span>
            </a>
            <a href="#">
                <span>
                    <img src="__STATIC__/images/icon_07.png" alt="汽车用品" /><br />
                    <span>汽车用品</span>
                </span>
            </a>
            <a href="#">
                <span>
                    <img src="__STATIC__/images/icon_09.png" alt="汽车资讯" /><br />
                    <span>汽车资讯</span>
                </span>
            </a>
            <a href="#">
                <span>
                    <img src="__STATIC__/images/icon_15.png" alt="团购" /><br />
                    <span>加油卡</span>
                </span>
            </a>
            <a href="#">
                <span>
                    <img src="__STATIC__/images/icon_16.png" alt="我的订单" /><br />
                    <span>华盛汽修</span>
                </span>
            </a> -->
            <!--<a href="shopcar.html">-->
           <!--  <a href="#">
                <span>
                    <img src="__STATIC__/images/icon_17.png" alt="购物车" /><br />
                    <span>爱义行维修</span>
                </span>
            </a> -->
            <!--<a href="my.html">-->
           <!--  <a href="#">
                <span>
                    <img src="__STATIC__/images/icon_19.png" alt="个人中心" /><br />
                    <span>273二手车</span>
                </span>
            </a> -->
        </nav>
    </div>
    <!--菜单-end-->

    <!--秒杀-start-->
    <!-- <div class="floor secondkill">
        <div class="content">
            <div class="time p">
                <div class="djs lightning fl">
                    <span class="add">秒杀</span>
                    <span class="red" id="">{:date('H',$start_time)}点场</span>
                    <span class="hms"></span>
                </div>
                <div class="xsxl fr">
                    <a href="{:U('Mobile/Activity/flash_sale_list')}">
                        <span>限时限量<img src="__STATIC__/images/or.png" alt="" /></span>
                    </a>
                </div>
            </div>
            <div class="shop p">
                <if condition="count($flash_sale_list) eq nll">
                    <div style="text-align: center;">暂无抢购商品。。。。</div>
                </if>
                <foreach name="flash_sale_list" item="v">
                    <a href="{:U('Mobile/Goods/goodsInfo',array('id'=>$v[goods_id],'item_id'=>$v[item_id]))}">
                   <a href="{:U('Mobile/Activity/flash_sale_list')}">
                        <div class="timerBox shopnum">
                            <img src="{$v[goods_id]|goods_thum_images=200,200}"/>
                            <p>￥<span>{$v[price]}</span>元</p>
                        </div>
                    </a>
                </foreach>
            </div>
        </div> 
    </div> --> 
    <!--秒杀-end-->

    <!--广告位-start-->
    <!-- <div class="banner ma-to-20">
        <adv limit="1" item="v" pid="400">
            <a href="{$v.ad_link}">
            <img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}"/>
            </a>
        </adv>
    </div>
    <div class="floor advertisement">
        <div class="content">
            <div class="le lefhe fl">
                <adv  limit="1" item="v" pid="301">
                    <a href="{$v.ad_link}">
                        <div class="td">
                            <img src="{$v[ad_code]}">
                        </div>
                    </a>
                </adv>
                <adv  limit="1" item="v" pid="302">
                    <a href="{$v.ad_link}">
                        <div class="td">
                            <img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}">
                        </div>
                    </a>
                </adv>
            </div>
            <div class="le re fr">
                <adv  limit="1" item="v" pid="300">
                    <a href="{$v.ad_link}">
                        <div class="td">
                            <img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}">
                        </div>
                    </a>
                </adv>

            </div>
        </div>
    </div> -->
    <!--广告位-end-->

    <!--新品上市-start-->
    <div class="floor newshop">
        <!-- <div class="banner">
            <img src="__STATIC__/images/ind_22.jpg" alt="新品上市"/>
        </div> -->
        <!-- <div class="advertisement">
            <div class="content">
                <div class="le re fl">
                    <adv  limit="1" item="v" pid="303">
                        <a href="{$v[ad_link]}" >
                            <div class="td" style="text-align: center;">
                                <img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}"/>
                                <p style="">{$v[ad_name]}</p>
                                <p style="text-align: left;" class="red">￥960</p>
                            </div>
                        </a>
                    </adv>
                </div>
                <div class="le re fl">
                    <adv  limit="1" item="v" pid="51317">
                        <a href="{$v[ad_link]}" >
                            <div class="td" style="text-align: center;">
                                <img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}"/>
                                <p style="margin-bottom: 30px;">{$v[ad_name]}</p>
                            </div>

                        </a>
                    </adv>
                </div>
            </div>
        </div> -->
        <div class="advertisement">
            <div class="content">
                <foreach name="hot_goods" item="v">
                <div class="le re fl">
                    <a href="{:U('Mobile/Goods/goodsInfo',array('id'=>$v[goods_id],'item_id'=>$v[item_id]))}">
                        <div class="td" style="text-align: center;">
                            <img src="{$v.original_img}" title="猪" style=""/>
                            <p style="">{$v.goods_name}</p>
                            <p style="text-align: left;" class="red">￥{$v.shop_price}</p>
                        </div>
                    </a>
                </div>
                </foreach>
               
            </div>
        </div>
    </div>
    <!--新品上市-end-->
    <adv pid ="51320" limit="1" item="v">
        <div class="adimg">
            <a href="#">
                <img src="{$v[ad_code]}">
            </a>
        </div>
    </adv>
    
     
    <div class="floor newshop">
        <!-- <div class="banner">
            <img src="__STATIC__/images/ind_22.jpg" alt="新品上市"/>
        </div> -->
        <!-- <div class="advertisement">
            <div class="content">
                <div class="le re fl">
                    <adv  limit="1" item="v" pid="303">
                        <a href="{$v[ad_link]}" >
                            <div class="td" style="text-align: center;">
                                <img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}"/>
                                <p style="">{$v[ad_name]}</p>
                                <p style="text-align: left;" class="red">￥960</p>
                            </div>
                        </a>
                    </adv>
                </div>
                <div class="le re fl">
                    <adv  limit="1" item="v" pid="51317">
                        <a href="{$v[ad_link]}" >
                            <div class="td" style="text-align: center;">
                                <img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}"/>
                                <p style="margin-bottom: 30px;">{$v[ad_name]}</p>
                            </div>

                        </a>
                    </adv>
                </div>
            </div>
        </div> -->
        <div class="advertisement">
            <div class="content">
                <foreach name="favourite_goods" item="v">
                <div class="le re fl">
                        <a href="{:U('Mobile/Goods/goodsInfo',array('id'=>$v[goods_id],'item_id'=>$v[item_id]))}">
                            <div class="td" style="text-align: center;">
                                <img src="{$v.original_img}" title="猪" style=""/>
                                <p style="">{$v.goods_name}</p>
                                <p style="text-align: left;" class="red">￥{$v.shop_price}</p>
                            </div>
                        </a>
                </div>
                </foreach>
                
            </div>
        </div>
    </div>
    <!--新品上市-end-->

    <!--猜您喜欢-start-->
    <!-- <div class="floor guesslike">
        <div class="banner">
            <img src="__STATIC__/images/ind_52.jpg" alt="猜您喜欢"/>
        </div>
        <div class="likeshop">
            <div id="J_ItemList">
                <ul class="product single_item info">
                </ul>
            </div>
        </div>
    </div> -->
    <!--猜您喜欢-end-->

    

    <!--底部导航-start-->
    <include file="public/footer_nav"/>
    <!--底部导航-end-->
	<script src="__STATIC__/js/style.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="__STATIC__/js/sourch_submit.js"></script>
<script type="text/javascript">
    /**
     * 秒杀模块倒计时
     * */
    function GetRTime(end_time){
        var NowTime = new Date();
        var t = (end_time*1000) - NowTime.getTime();
        var d=Math.floor(t/1000/60/60/24);
        var h=Math.floor(t/1000/60/60%24);
        var m=Math.floor(t/1000/60%60);
        var s=Math.floor(t/1000%60);
        if(s >= 0)
            return (d * 24 + h) + '时' + m + '分' +s+'秒';
    }
    function GetRTime2(){
        var text = GetRTime('{$end_time}');
        if (text== 0){
            $(".hms").text('活动已结束');
        }else{
            $(".hms").text(text);
        }
    }
    setInterval(GetRTime2,1000);

    /**
     * 继续加载猜您喜欢
     * */
    var before_request = 1; // 上一次请求是否已经有返回来, 有才可以进行下一次请求
    var page = 0;
    function ajax_sourch_submit(){
        if(before_request == 0)// 上一次请求没回来 不进行下一次请求
            return false;
        before_request = 0;
        page++;
        $.ajax({
            type : "get",
            url:"/index.php?m=Mobile&c=Index&a=ajaxGetMore&p="+page,
            success: function(data)
            {
                if(data){
                    $("#J_ItemList>ul").append(data);
                    before_request = 1;
                }else{
                    $('.get_more').hide();
                }
            }
        });
    }
</script>
	</body>
</html>
